package com.learn.training.multithread.chapter5.demo1;

public class Demo {
    public static void main(String[] args) {
        TimerThread t = new TimerThread();
//        t.setDaemon(true);
        t.start();
        System.out.println("t daemon : " + t.isDaemon());
        System.out.println("main wait 3 seconds");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("main end");
    }
}
